﻿<php>$meta_title = $vo['sale_no']." 售后退款详情";</php>
<include file="Public:header" />
<div id="main" class="main" >
    <div class="content">
  <h3 class="heading">{$vo.mall_no}售后退款 [ <a href="__URL__">返回列表</a> ] 
  </h3>
<div id="result" class="result none"></div>
<table cellpadding=3 cellspacing=3 >
    <form class="form-horizontal well" method='post' id="form1" action="__URL__/update/">
    <tr><td colspan="4" class="heading h4 alert alert-info">原单号：{$vo.mall_no} 
        <span class="offset1">来源：
           {$vo.sale_id|getModelName='Sale','order_source_id'|getModelName='Order_source'} 
        </span>
        <span class="offset1">创建人:{$vo.user_id|getModelName='User'}</span>
        <span class="offset1">创建时间: {$vo.create_time|toDate}</span>
       </td>
    </tr>
    <tr>
    <php> $goods = S('goods');   </php>
        <td colspan="4">
         <table class="table table-bordered">
            <tr>
                <th>商品</th><th>数量</th><th>退款时段</th><th>退款类型</th><th>退款金额</th> <th>退款原因</th><th>备注</th>
            </tr>
            <tr>     <td> <input type="hidden" name="id" value="{$vo.id}"  />
                     {:$goods[$vo['goods_id']]['name']}
                 </td>
                 <td> <input id="" type="text" name="number" value="{$vo.number}" class="span1" />  </td>
                 <td>{:configList(C('refund_time') ,$vo['refund_time'],'refund_time' )} </td>
                 <td>{:configList(C('refund_type') ,$vo['refund_type'],'refund_type' )} </td>
                 <td> <input id="" type="text" name="refund" value="{$vo.refund}" class="span1" /> </td>
                 <td>{:configList(C('refund_reason') ,$vo['reason'],'reason' )} </td>
                 <td> <textarea id="" type="text" name="remark" value="{$vo.reason}" class="input-xlarge" >{$vo.remark}</textarea>  </td>
        </tr>
            </tr>
         </table>
        </td>
    </tr>
    <tr>
	<td></td>
	<td class="center" width="300">
        <input type="hidden" value="{$vo.id}" name="id">
  	    <button type="submit" class="btn btn-primary"><i class="icon-ok icon-white"></i> 保存</button>
	<button type="reset" onclick="javascript:history.back()" class="btn btn-primary offset1"><i class="icon-arrow-left icon-white"></i> 返回</button>
	</td>
</tr>
</form>
</table>

</div>
</div>
<include file="Public:footer" />
<script type="text/javascript" src="__PUBLIC__/Js/jquery-1.4.4.min.js"></script>
<script type="text/javascript">
function removerow(obj){
    var objnum = jQuery(obj).parent().parent().parent().children().size();
    jQuery(obj).parent().parent().remove();
}
</script>
